<!-- HTML header for doxygen 1.9.7-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<title>libsir: The Standard Incident Reporter Library</title>
<!-- OpenGraph -->
<meta property="og:title" content="libsir: The Standard Incident Reporter Library">
<meta property="og:description" content="A lightweight, cross-platform C library for information distribution">
<meta property="og:url" content="https://libsir.rml.dev">
<meta property="og:type" content="website">
<meta property="og:image" content="https://libsir.rml.dev/res/libsir-og.png">
<meta name="twitter:card" content="summary_large_image"></meta>
<meta name="twitter:title" content="libsir: The Standard Incident Reporter Library"></meta>
<meta name="twitter:description" content="A lightweight, cross-platform C library for information distribution"></meta>
<meta name="twitter:image" content="https://libsir.rml.dev/res/libsir-og.png"></meta>
<!-- /OpenGraph -->
<!-- favicon -->
<link rel="icon" href="res/libsir-icon.png">
<link rel="icon" href="res/libsir-icon.svg" type="image/svg+xml">
<link rel="manifest" href="res/icons.webmanifest">
<!-- /favicon -->
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<link href="rml-navtree.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libsir<span id="projectnumber">&#160;2.2.6</span>
   </div>
   <div id="projectbrief">Standard Incident Reporter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('sir_8hh_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">sir.hh</div></div>
</div><!--header-->
<div class="contents">
<a href="sir_8hh.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#ifndef _SIR_HH_INCLUDED</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor"># define _SIR_HH_INCLUDED</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor"># include &quot;<a class="code" href="sir_8h.html">sir.h</a>&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor"># include &quot;sir/helpers.h&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor"># include &quot;sir/internal.h&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor"># include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor"># include &lt;stdexcept&gt;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor"># include &lt;algorithm&gt;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor"># include &lt;exception&gt;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor"># include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor"># include &lt;cstring&gt;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor"># include &lt;memory&gt;</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor"># include &lt;tuple&gt;</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor"># include &lt;string&gt;</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor"># include &lt;array&gt;</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor"># if HAS_INCLUDE(&lt;format&gt;) &amp;&amp; !defined (SIR_NO_STD_FORMAT) &amp;&amp; \</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">     !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#  include &lt;format&gt;</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="preprocessor">#  define __SIR_HAVE_STD_FORMAT__</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor"># if HAS_INCLUDE(&lt;boost/format.hpp&gt;) &amp;&amp; !defined(SIR_NO_BOOST_FORMAT)</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span><span class="preprocessor">#  include &lt;boost/format.hpp&gt;</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="preprocessor">#  define __SIR_HAVE_BOOST_FORMAT__</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="preprocessor"># if HAS_INCLUDE(&lt;fmt/format.h&gt;) &amp;&amp; !defined(SIR_NO_FMT_FORMAT)</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="preprocessor">#  define FMT_HEADER_ONLY</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span><span class="preprocessor">#  include &lt;fmt/format.h&gt;</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span><span class="preprocessor">#  define __SIR_HAVE_FMT_FORMAT__</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="preprocessor"># if !defined(SIR_NO_STD_IOSTREAM)</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span><span class="preprocessor">#  include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span></div>
<div class="foldopen" id="foldopen00078" data-start="{" data-end="}">
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="namespacesir.html">   78</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacesir.html">sir</a></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>{</div>
<div class="foldopen" id="foldopen00091" data-start="{" data-end="};">
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="structsir_1_1error.html">   91</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="structsir_1_1error.html">error</a> {</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">   92</a></span>        uint16_t <a class="code hl_variable" href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">code</a> {};    </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">   93</a></span>        std::string <a class="code hl_variable" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">message</a>; </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> is_os_error() const noexcept {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>            <span class="keywordflow">return</span> <a class="code hl_variable" href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">code</a> == <a class="code hl_enumvalue" href="group__publictypes.html#gga861df9be69c6bcd01d29b77bd28ff7d3a0f293a6020f98a7e41b8afea0e402046">SIR_E_PLATFORM</a>;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>        <span class="keyword">static</span> <a class="code hl_struct" href="structsir_1_1error.html">error</a> from_last_error() {</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>            std::string <a class="code hl_variable" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">message</a>(<a class="code hl_define" href="config_8h.html#ad6fce840144259e992c33fb611f31262">SIR_MAXERROR</a>, <span class="charliteral">&#39;\0&#39;</span>);</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>            <span class="keyword">const</span> <span class="keyword">auto</span> <a class="code hl_variable" href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">code</a> = <a class="code hl_function" href="group__publicfuncs.html#gac0c399c73c25d1128befc6b75cbae300">sir_geterror</a>(<a class="code hl_variable" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">message</a>.data());</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>            <span class="keywordflow">return</span> { <a class="code hl_variable" href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">code</a>, std::move(<a class="code hl_variable" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">message</a>) };</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>        }</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    };</div>
</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span></div>
<div class="foldopen" id="foldopen00116" data-start="{" data-end="};">
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html">  116</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="structsir_1_1error__info.html">error_info</a> : <span class="keyword">public</span> <a class="code hl_struct" href="structsir_1_1error.html">error</a> {</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html#a61fbf2aa83f633e14d555d776678293c">  117</a></span>        std::string <a class="code hl_variable" href="structsir_1_1error__info.html#a61fbf2aa83f633e14d555d776678293c">func</a>;       </div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html#aba8bcd37037f5f60ed649eb294116e3f">  118</a></span>        std::string <a class="code hl_variable" href="structsir_1_1error__info.html#aba8bcd37037f5f60ed649eb294116e3f">file</a>;       </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html#af75e59110165c3b9956b033f6d8b2fa3">  119</a></span>        uint32_t <a class="code hl_variable" href="structsir_1_1error__info.html#af75e59110165c3b9956b033f6d8b2fa3">line</a> {};       </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html#a95cccdc388e72ad80148f4dcbe909c9b">  120</a></span>        <span class="keywordtype">int</span> <a class="code hl_variable" href="structsir_1_1error__info.html#a95cccdc388e72ad80148f4dcbe909c9b">os_code</a> {};         </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="structsir_1_1error__info.html#a2f83aca9899de43aab001ef87309c746">  121</a></span>        std::string <a class="code hl_variable" href="structsir_1_1error__info.html#a2f83aca9899de43aab001ef87309c746">os_message</a>; </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>        <span class="keyword">static</span> <a class="code hl_struct" href="structsir_1_1error__info.html">error_info</a> from_last_error() {</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>            <a class="code hl_struct" href="group__publictypes.html#structsir__errorinfo">sir_errorinfo</a> errinfo {};</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>            <a class="code hl_function" href="group__publicfuncs.html#gaedefdc4fb0546a210740ad0fb87f7b34">sir_geterrorinfo</a>(&amp;errinfo);</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>            <span class="keywordflow">return</span> { { errinfo.code, errinfo.msg }, errinfo.func, errinfo.file,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>                errinfo.line, errinfo.os_code, errinfo.os_msg };</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        }</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    };</div>
</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span></div>
<div class="foldopen" id="foldopen00144" data-start="{" data-end="};">
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classsir_1_1exception.html">  144</a></span>    <span class="keyword">class </span>exception : <span class="keyword">public</span> std::runtime_error {</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>        <span class="keyword">using </span>std::runtime_error::runtime_error;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>        exception() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        <span class="keyword">explicit</span> exception(<span class="keyword">const</span> <a class="code hl_struct" href="structsir_1_1error.html">error</a>&amp; err) : exception(err.<a class="code hl_variable" href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">message</a>) { }</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>        ~exception() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>    };</div>
</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span></div>
<div class="foldopen" id="foldopen00162" data-start="{" data-end="};">
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classsir_1_1policy.html">  162</a></span>    <span class="keyword">class </span>policy {</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>        policy() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>        <span class="keyword">virtual</span> ~policy() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classsir_1_1policy.html#ad90f4955785ed7bc45c9a5136f0f6a4d">  188</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsir_1_1policy.html#ad90f4955785ed7bc45c9a5136f0f6a4d">get_init_data</a>(<a class="code hl_struct" href="group__publictypes.html#structsirinit">sirinit</a>&amp; data) <span class="keyword">const</span> <span class="keyword">noexcept</span> = 0;</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="classsir_1_1policy.html#aa799babbc9291dcdef56556b46edadd0">  205</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsir_1_1policy.html#aa799babbc9291dcdef56556b46edadd0">on_init_complete</a>() const noexcept = 0;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span></div>
<div class="foldopen" id="foldopen00219" data-start="{" data-end="}">
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="classsir_1_1policy.html#abd4159da84207f2bcbd9fd2ce78e2640">  219</a></span>        static constexpr <span class="keywordtype">bool</span> <a class="code hl_function" href="classsir_1_1policy.html#abd4159da84207f2bcbd9fd2ce78e2640">throw_on_error</a>() noexcept {</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>        }</div>
</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>    };</div>
</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span></div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="conceptsir_1_1_derived_from_policy.html">  226</a></span>    <span class="keyword">concept </span><a class="code hl_concept" href="conceptsir_1_1_derived_from_policy.html">DerivedFromPolicy</a> = std::is_base_of_v&lt;policy, T&gt;;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span></div>
<div class="foldopen" id="foldopen00237" data-start="{" data-end="};">
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="classsir_1_1default__policy.html">  237</a></span>    <span class="keyword">class </span>default_policy : <span class="keyword">public</span> policy {</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>        default_policy() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>        ~default_policy() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span> </div>
<div class="foldopen" id="foldopen00242" data-start="{" data-end="}">
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="classsir_1_1default__policy.html#a1acad8a59d338fcdba4b6a7bfa7711f4">  242</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsir_1_1default__policy.html#a1acad8a59d338fcdba4b6a7bfa7711f4">get_init_data</a>(<a class="code hl_struct" href="group__publictypes.html#structsirinit">sirinit</a>&amp; data) <span class="keyword">const</span> <span class="keyword">noexcept</span> <span class="keyword">final</span> {</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="group__publicfuncs.html#gac21fb86ac7e7710400bf8b642887ad96">sir_makeinit</a>(&amp;data);</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>        }</div>
</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="foldopen" id="foldopen00246" data-start="{" data-end="}">
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="classsir_1_1default__policy.html#ae73d8edbd0dc7ba668c59634511efa87">  246</a></span>        <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsir_1_1default__policy.html#ae73d8edbd0dc7ba668c59634511efa87">on_init_complete</a>() const noexcept final {</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>        }</div>
</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>        <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">bool</span> throw_on_error() noexcept {</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>        }</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>    };</div>
</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span></div>
<div class="foldopen" id="foldopen00267" data-start="{" data-end="};">
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="classsir_1_1adapter.html">  267</a></span>    <span class="keyword">class </span>adapter {</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>        adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>        <span class="keyword">virtual</span> ~adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>    };</div>
</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span></div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00289" data-start="{" data-end="}">
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">  289</a></span>    <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy</a>(<span class="keywordtype">bool</span> expr) <span class="keyword">noexcept</span>(<span class="keyword">false</span>) {</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>        <span class="keywordflow">if</span> (!expr) {</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>            SIR_ASSERT(expr);</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span>            <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(TPolicy::throw_on_error()) {</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>                <span class="keywordflow">throw</span> <a class="code hl_class" href="classsir_1_1exception.html">exception</a>(error::from_last_error());</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span>            }</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>        }</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>        <span class="keywordflow">return</span> expr;</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span>    }</div>
</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span></div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00310" data-start="{" data-end="};">
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html">  310</a></span>    <span class="keyword">class </span>default_adapter : <span class="keyword">public</span> adapter {</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>        default_adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span>        ~default_adapter() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span></div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00317" data-start="{" data-end="}">
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#a5c8728d42da733f00f5c0ce939978228">  317</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#a5c8728d42da733f00f5c0ce939978228">debug</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#gaa2927c260f1d8fac96513442e50105fc">SIRL_DEBUG</a>, format, args);</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span>            _SIR_L_END();</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span>        }</div>
</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span></div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00326" data-start="{" data-end="}">
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#ae53142d862fd43568532520310a76a1b">  326</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#ae53142d862fd43568532520310a76a1b">info</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#ga9e73defcee82050f038956ad7e911621">SIRL_INFO</a>, format, args);</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>            _SIR_L_END();</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>        }</div>
</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span></div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00335" data-start="{" data-end="}">
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#a9c01f5ee581dcad13fe30bcd1dd7034b">  335</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#a9c01f5ee581dcad13fe30bcd1dd7034b">notice</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#gad4aefd62d77b020460d32c9350bec7d5">SIRL_NOTICE</a>, format, args);</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>            _SIR_L_END();</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>        }</div>
</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span></div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00344" data-start="{" data-end="}">
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#a9138545e92545d167c2b6e9b3bbbd401">  344</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#a9138545e92545d167c2b6e9b3bbbd401">warn</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#ga91b18adc2526599377583951c29e84b9">SIRL_WARN</a>, format, args);</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span>            _SIR_L_END();</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span>        }</div>
</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span></div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00353" data-start="{" data-end="}">
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#a97abc9b8dd4bce5e866ddc3687c3f334">  353</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#a97abc9b8dd4bce5e866ddc3687c3f334">error</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno">  355</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#ga39dffb8c9c5100251098820cb5b48446">SIRL_ERROR</a>, format, args);</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno">  356</span>            _SIR_L_END();</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno">  357</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno">  358</span>        }</div>
</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno">  359</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00362" data-start="{" data-end="}">
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#a583dd799f546f5c61dfc19c8e0e4bd7d">  362</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#a583dd799f546f5c61dfc19c8e0e4bd7d">crit</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#gac559a9050c927bf0dc9f88dfc3905e06">SIRL_CRIT</a>, format, args);</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span>            _SIR_L_END();</div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno">  366</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span>        }</div>
</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span></div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno">  370</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00371" data-start="{" data-end="}">
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#afa77598ec0807239b158c1af4e9881df">  371</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#afa77598ec0807239b158c1af4e9881df">alert</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno">  372</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno">  373</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#ga8549494d396c96ba66b5b78b298cff7d">SIRL_ALERT</a>, format, args);</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span>            _SIR_L_END();</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span>        }</div>
</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span></div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span>        PRINTF_FORMAT_ATTR(2, 3)</div>
<div class="foldopen" id="foldopen00380" data-start="{" data-end="}">
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"><a class="line" href="classsir_1_1default__adapter.html#ac6cc004d815f3a236f871d1207df6753">  380</a></span>        bool <a class="code hl_function" href="classsir_1_1default__adapter.html#ac6cc004d815f3a236f871d1207df6753">emerg</a>(PRINTF_FORMAT const <span class="keywordtype">char</span>* format, ...)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span>            _SIR_L_START(format);</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span>            ret = _sir_logv(<a class="code hl_define" href="group__publictypes.html#ga2409f97357f1eb510ababeb6e0a030e8">SIRL_EMERG</a>, format, args);</div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span>            _SIR_L_END();</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span>        }</div>
</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span>    };</div>
</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span> </div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span><span class="preprocessor"># if defined(__SIR_HAVE_STD_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00413" data-start="{" data-end="};">
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"><a class="line" href="classsir_1_1std__format__adapter.html">  413</a></span>    <span class="keyword">class </span>std_format_adapter : <span class="keyword">public</span> adapter {</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span>        std_format_adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span>        ~std_format_adapter() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span> </div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> debug_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga7e2563198d16d5c7ba7bdf55fec9215c">sir_debug</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span>        }</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span> </div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> info_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno">  428</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga9aa2c092ae4ff0bf75043dce10166661">sir_info</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span>        }</div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span> </div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> notice_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3b8cad62f929e549f2d031470e3a1fc7">sir_notice</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>        }</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span> </div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> warn_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gabf71ddaf533f10cf278986d4bdb3f76f">sir_warn</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span>        }</div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span> </div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> error_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3955274b94bf3d09ad8ebefd93035aa3">sir_error</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>        }</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span> </div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> crit_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gab4836aea12ba1a2b187f325a416ea9c2">sir_crit</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span>        }</div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span> </div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> alert_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga235d760d94e67fcf82ccc16c77a8249e">sir_alert</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span>        }</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span> </div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> emerg_std(std::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = std::vformat(fmt.get(), std::make_format_args(args...));</div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gaf94f3dcbd6a14e81f6eca555733dce23">sir_emerg</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno">  472</span>        }</div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span>    };</div>
</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span><span class="preprocessor"># endif </span><span class="comment">// !__SIR_HAVE_STD_FORMAT__</span></div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span> </div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span><span class="preprocessor"># if defined(__SIR_HAVE_BOOST_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00501" data-start="{" data-end="};">
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"><a class="line" href="classsir_1_1boost__format__adapter.html">  501</a></span>    <span class="keyword">class </span>boost_format_adapter : <span class="keyword">public</span> adapter {</div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno">  502</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno">  503</span>        boost_format_adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno">  504</span>        ~boost_format_adapter() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span> </div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno">  506</span>        <span class="keywordtype">bool</span> debug_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno">  507</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga7e2563198d16d5c7ba7bdf55fec9215c">sir_debug</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span>        }</div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span> </div>
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno">  511</span>        <span class="keywordtype">bool</span> info_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno">  512</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga9aa2c092ae4ff0bf75043dce10166661">sir_info</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno">  513</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno">  514</span>        }</div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno">  515</span> </div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>        <span class="keywordtype">bool</span> notice_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3b8cad62f929e549f2d031470e3a1fc7">sir_notice</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span>        }</div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno">  520</span> </div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>        <span class="keywordtype">bool</span> warn_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gabf71ddaf533f10cf278986d4bdb3f76f">sir_warn</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno">  523</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00524" name="l00524"></a><span class="lineno">  524</span>        }</div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno">  525</span> </div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno">  526</span>        <span class="keywordtype">bool</span> error_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno">  527</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3955274b94bf3d09ad8ebefd93035aa3">sir_error</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span>        }</div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span> </div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span>        <span class="keywordtype">bool</span> crit_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gab4836aea12ba1a2b187f325a416ea9c2">sir_crit</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno">  534</span>        }</div>
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno">  535</span> </div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno">  536</span>        <span class="keywordtype">bool</span> alert_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno">  537</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga235d760d94e67fcf82ccc16c77a8249e">sir_alert</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno">  539</span>        }</div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno">  540</span> </div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span>        <span class="keywordtype">bool</span> emerg_bf(<span class="keyword">const</span> boost::format&amp; fmt)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gaf94f3dcbd6a14e81f6eca555733dce23">sir_emerg</a>(<span class="stringliteral">&quot;%s&quot;</span>, fmt.str().c_str());</div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span>        }</div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno">  545</span>    };</div>
</div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span><span class="preprocessor"># endif </span><span class="comment">// !__SIR_HAVE_BOOST_FORMAT__</span></div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span> </div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno">  548</span><span class="preprocessor"># if defined(__SIR_HAVE_FMT_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno">  572</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00573" data-start="{" data-end="};">
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno"><a class="line" href="classsir_1_1fmt__format__adapter.html">  573</a></span>    <span class="keyword">class </span>fmt_format_adapter : <span class="keyword">public</span> adapter {</div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span>        fmt_format_adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno">  576</span>        ~fmt_format_adapter() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno">  577</span> </div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno">  578</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno">  579</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> debug_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno">  580</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno">  581</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga7e2563198d16d5c7ba7bdf55fec9215c">sir_debug</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span>        }</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span> </div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno">  585</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> info_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno">  587</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno">  588</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga9aa2c092ae4ff0bf75043dce10166661">sir_info</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno">  589</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno">  590</span>        }</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno">  591</span> </div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> notice_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3b8cad62f929e549f2d031470e3a1fc7">sir_notice</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>        }</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span> </div>
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno">  599</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> warn_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno">  601</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gabf71ddaf533f10cf278986d4bdb3f76f">sir_warn</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span>        }</div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno">  605</span> </div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> error_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno">  609</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga3955274b94bf3d09ad8ebefd93035aa3">sir_error</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span>        }</div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span> </div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> crit_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno">  615</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gab4836aea12ba1a2b187f325a416ea9c2">sir_crit</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span>        }</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span> </div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> alert_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#ga235d760d94e67fcf82ccc16c77a8249e">sir_alert</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span>        }</div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno">  626</span> </div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno">  627</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span>... Args&gt;</div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno">  628</span>        <span class="keyword">inline</span> <span class="keywordtype">bool</span> emerg_fmt(fmt::format_string&lt;Args...&gt; fmt, Args&amp;&amp;... args)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>            <span class="keyword">const</span> <span class="keyword">auto</span> str = fmt::vformat(fmt, fmt::make_format_args(args...));</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span>            <span class="keyword">const</span> <span class="keyword">auto</span> ret = <a class="code hl_function" href="group__publicfuncs.html#gaf94f3dcbd6a14e81f6eca555733dce23">sir_emerg</a>(<span class="stringliteral">&quot;%s&quot;</span>, str.c_str());</div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(ret);</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span>        }</div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno">  633</span>    };</div>
</div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno">  634</span><span class="preprocessor"># endif </span><span class="comment">// !__SIR_HAVE_FMT_FORMAT__</span></div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span> </div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno">  636</span><span class="preprocessor"># if !defined(SIR_NO_STD_IOSTREAM)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno">  638</span>    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno"><a class="line" href="conceptsir_1_1_derived_from_stream_buf.html">  639</a></span>    <span class="keyword">concept </span><a class="code hl_concept" href="conceptsir_1_1_derived_from_stream_buf.html">DerivedFromStreamBuf</a> = std::is_base_of_v&lt;std::streambuf, T&gt;;</div>
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno">  640</span></div>
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno">  666</span>    <span class="keyword">template</span>&lt;DerivedFromPolicy TPolicy&gt;</div>
<div class="foldopen" id="foldopen00667" data-start="{" data-end="};">
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno"><a class="line" href="classsir_1_1std__iostream__adapter.html">  667</a></span>    <span class="keyword">class </span>std_iostream_adapter : <span class="keyword">public</span> adapter {</div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno">  668</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span>        std_iostream_adapter() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span>        ~std_iostream_adapter() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno">  671</span> </div>
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno">  672</span>        <span class="keyword">template</span>&lt;<span class="keyword">typename</span> TFunc&gt;</div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno">  673</span>        <span class="keyword">class </span>buffer : <span class="keyword">public</span> std::streambuf {</div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno">  674</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno">  675</span>            <span class="keyword">using </span>array_type = std::array&lt;char_type, SIR_MAXMESSAGE&gt;;</div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno">  676</span> </div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno">  677</span>            buffer() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno">  678</span> </div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span>            <span class="keyword">explicit</span> buffer(TFunc pfn) : _pfn(pfn) {</div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span>                [[maybe_unused]]</div>
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno">  681</span>                <span class="keywordtype">bool</span> ok = <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(pfn != <span class="keyword">nullptr</span> &amp;&amp; _arr != <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno">  682</span>                reset();</div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span>            }</div>
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno">  684</span> </div>
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno">  685</span>            ~buffer() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00686" name="l00686"></a><span class="lineno">  686</span> </div>
<div class="line"><a id="l00687" name="l00687"></a><span class="lineno">  687</span>        <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno">  688</span>            <span class="keywordtype">void</span> reset() {</div>
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno">  689</span>                <span class="keywordflow">if</span> (_arr) {</div>
<div class="line"><a id="l00690" name="l00690"></a><span class="lineno">  690</span>                    _arr-&gt;fill(<span class="charliteral">&#39;\0&#39;</span>);</div>
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno">  691</span>                    setp(_arr-&gt;data(), _arr-&gt;data() + _arr-&gt;size() - 1);</div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno">  692</span>                }</div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno">  693</span>            }</div>
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno">  694</span> </div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno">  695</span>            <span class="keywordtype">bool</span> write_out() {</div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno">  696</span>                <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = _arr-&gt;rbegin(); it != _arr-&gt;rend(); it++) {</div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span>                    <span class="keywordflow">if</span> ((*it != <span class="charliteral">&#39;\0&#39;</span>) &amp;&amp; (*it == <span class="charliteral">&#39;\n&#39;</span>)) {</div>
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno">  698</span>                        *it = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno">  699</span>                        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno">  700</span>                    }</div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno">  701</span>                }</div>
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno">  702</span> </div>
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno">  703</span>                <span class="keyword">const</span> <span class="keywordtype">bool</span> write = _pfn ? _pfn(_arr-&gt;data()) : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno">  704</span>                reset();</div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno">  705</span>                <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(write);</div>
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno">  706</span>            }</div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno">  707</span> </div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span>            int_type overflow(int_type ch)<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span>                <span class="keywordflow">if</span> (ch != traits_type::eof() &amp;&amp; write_out()) {</div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span>                    <span class="keywordflow">return</span> ch;</div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span>                }</div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno">  712</span>                <span class="keywordflow">return</span> traits_type::eof();</div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno">  713</span>            }</div>
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno">  714</span> </div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno">  715</span>            <span class="keywordtype">int</span> sync()<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span>                <span class="keywordflow">return</span> write_out() ? 0 : -1;</div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno">  717</span>            }</div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno">  718</span> </div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno">  719</span>            std::streamsize xsputn(<span class="keyword">const</span> char_type* s, std::streamsize count)<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno">  720</span>                std::streamsize written = 0;</div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno">  721</span>                <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span>                    ptrdiff_t left = epptr() - pptr();</div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno">  723</span>                    <span class="keywordflow">if</span> (!left) {</div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span>                        int_type ch = overflow(traits_type::to_int_type(*(s + written)));</div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span>                        <span class="keywordflow">if</span> (ch != traits_type::eof()) {</div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span>                            <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno">  727</span>                        } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno">  728</span>                            <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno">  729</span>                        }</div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno">  730</span>                    }</div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno">  731</span> </div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span>                    <span class="keyword">auto</span> this_write = std::min(<span class="keyword">static_cast&lt;</span>std::streamsize<span class="keyword">&gt;</span>(left),</div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno">  733</span>                        count - written);</div>
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno">  734</span>                    std::memcpy(pptr(), s + written, <span class="keyword">static_cast&lt;</span>std::size_t<span class="keyword">&gt;</span>(this_write));</div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno">  735</span>                    pbump(<span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(this_write));</div>
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno">  736</span>                    written += this_write;</div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno">  737</span>                } <span class="keywordflow">while</span> (written &lt; count);</div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno">  738</span> </div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno">  739</span>                <span class="keywordflow">return</span> written;</div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span>            }</div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno">  741</span> </div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno">  742</span>        <span class="keyword">private</span>:</div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno">  743</span>            std::shared_ptr&lt;array_type&gt; _arr = std::make_shared&lt;array_type&gt;();</div>
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno">  744</span>            TFunc _pfn = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno">  745</span>        };</div>
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno">  746</span> </div>
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno">  747</span>        <span class="keyword">template</span>&lt;DerivedFromStreamBuf TBuffer&gt;</div>
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno">  748</span>        <span class="keyword">class </span>stream : <span class="keyword">public</span> std::ostream {</div>
<div class="line"><a id="l00749" name="l00749"></a><span class="lineno">  749</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00750" name="l00750"></a><span class="lineno">  750</span>            <span class="keyword">explicit</span> stream(<span class="keyword">const</span> TBuffer&amp; buf) : std::ostream(&amp;_buf), _buf(buf) {}</div>
<div class="line"><a id="l00751" name="l00751"></a><span class="lineno">  751</span>            ~stream() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00752" name="l00752"></a><span class="lineno">  752</span> </div>
<div class="line"><a id="l00753" name="l00753"></a><span class="lineno">  753</span>        <span class="keyword">private</span>:</div>
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno">  754</span>            TBuffer _buf;</div>
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno">  755</span>        };</div>
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno">  756</span> </div>
<div class="line"><a id="l00757" name="l00757"></a><span class="lineno">  757</span>        <span class="keyword">using </span>log_func = bool(*)(<span class="keyword">const</span> <span class="keywordtype">char</span>*, ...);</div>
<div class="line"><a id="l00758" name="l00758"></a><span class="lineno">  758</span>        <span class="keyword">using </span>buffer_type = buffer&lt;log_func&gt;;</div>
<div class="line"><a id="l00759" name="l00759"></a><span class="lineno">  759</span>        <span class="keyword">using </span>stream_type = stream&lt;buffer_type&gt;;</div>
<div class="line"><a id="l00760" name="l00760"></a><span class="lineno">  760</span> </div>
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno">  761</span>        stream_type debug_stream  {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#ga7e2563198d16d5c7ba7bdf55fec9215c">sir_debug</a>}};</div>
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno">  762</span>        stream_type info_stream   {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#ga9aa2c092ae4ff0bf75043dce10166661">sir_info</a>}};</div>
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno">  763</span>        stream_type notice_stream {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#ga3b8cad62f929e549f2d031470e3a1fc7">sir_notice</a>}};</div>
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno">  764</span>        stream_type warn_stream   {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#gabf71ddaf533f10cf278986d4bdb3f76f">sir_warn</a>}};</div>
<div class="line"><a id="l00765" name="l00765"></a><span class="lineno">  765</span>        stream_type error_stream  {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#ga3955274b94bf3d09ad8ebefd93035aa3">sir_error</a>}};</div>
<div class="line"><a id="l00766" name="l00766"></a><span class="lineno">  766</span>        stream_type crit_stream   {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#gab4836aea12ba1a2b187f325a416ea9c2">sir_crit</a>}};</div>
<div class="line"><a id="l00767" name="l00767"></a><span class="lineno">  767</span>        stream_type alert_stream  {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#ga235d760d94e67fcf82ccc16c77a8249e">sir_alert</a>}};</div>
<div class="line"><a id="l00768" name="l00768"></a><span class="lineno">  768</span>        stream_type emerg_stream  {buffer_type {&amp;<a class="code hl_function" href="group__publicfuncs.html#gaf94f3dcbd6a14e81f6eca555733dce23">sir_emerg</a>}};</div>
<div class="line"><a id="l00769" name="l00769"></a><span class="lineno">  769</span>    };</div>
</div>
<div class="line"><a id="l00770" name="l00770"></a><span class="lineno">  770</span><span class="preprocessor"># endif </span><span class="comment">// SIR_NO_STD_IOSTREAM</span></div>
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno">  771</span></div>
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno">  773</span>    <span class="keyword">template</span>&lt;<span class="keywordtype">size_t</span> N, <span class="keyword">typename</span> ...Ts&gt;</div>
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno"><a class="line" href="namespacesir.html#af7e07997ea6e1fd2886a5ddc09eb91f7">  774</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#af7e07997ea6e1fd2886a5ddc09eb91f7">NthTypeOf</a> = <span class="keyword">typename</span> std::tuple_element&lt;N, std::tuple&lt;Ts...&gt;&gt;::type;</div>
<div class="line"><a id="l00775" name="l00775"></a><span class="lineno">  775</span></div>
<div class="line"><a id="l00777" name="l00777"></a><span class="lineno">  777</span>    <span class="keyword">template</span>&lt;<span class="keywordtype">size_t</span> N, <span class="keyword">typename</span> TBase, <span class="keyword">typename</span> ...Ts&gt;</div>
<div class="foldopen" id="foldopen00778" data-start="{" data-end="}">
<div class="line"><a id="l00778" name="l00778"></a><span class="lineno"><a class="line" href="namespacesir.html#a5f417c5e60499d22d51b5128a66dbe1a">  778</a></span>    <span class="keyword">consteval</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespacesir.html#a5f417c5e60499d22d51b5128a66dbe1a">all_derived_from_t</a>() {</div>
<div class="line"><a id="l00779" name="l00779"></a><span class="lineno">  779</span>        <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(!std::is_base_of_v&lt;TBase, <a class="code hl_typedef" href="namespacesir.html#af7e07997ea6e1fd2886a5ddc09eb91f7">NthTypeOf</a>&lt;N, Ts...&gt;&gt;)</div>
<div class="line"><a id="l00780" name="l00780"></a><span class="lineno">  780</span>            <span class="keywordflow">return</span> std::false_type::value;</div>
<div class="line"><a id="l00781" name="l00781"></a><span class="lineno">  781</span>        <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(N == 0)</div>
<div class="line"><a id="l00782" name="l00782"></a><span class="lineno">  782</span>            <span class="keywordflow">return</span> std::true_type::value;</div>
<div class="line"><a id="l00783" name="l00783"></a><span class="lineno">  783</span>        <span class="keywordflow">else</span></div>
<div class="line"><a id="l00784" name="l00784"></a><span class="lineno">  784</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#a5f417c5e60499d22d51b5128a66dbe1a">all_derived_from_t</a>&lt;N - 1, TBase, Ts...&gt;();</div>
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno">  785</span>    }</div>
</div>
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno">  786</span></div>
<div class="line"><a id="l00788" name="l00788"></a><span class="lineno">  788</span>    <span class="keyword">template</span>&lt;<span class="keyword">class </span>TBase, <span class="keyword">class </span>...Ts&gt;</div>
<div class="line"><a id="l00789" name="l00789"></a><span class="lineno"><a class="line" href="conceptsir_1_1_derived_from_t.html">  789</a></span>    <span class="keyword">concept </span><a class="code hl_concept" href="conceptsir_1_1_derived_from_t.html">DerivedFromT</a> = <a class="code hl_function" href="namespacesir.html#a5f417c5e60499d22d51b5128a66dbe1a">all_derived_from_t</a>&lt;<span class="keyword">sizeof</span>...(Ts) - 1, TBase, Ts...&gt;();</div>
<div class="line"><a id="l00790" name="l00790"></a><span class="lineno">  790</span></div>
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno">  809</span>    <span class="keyword">template</span>&lt;<span class="keywordtype">bool</span> RAII, DerivedFromPolicy TPolicy, <span class="keyword">template</span>&lt;<span class="keyword">class</span>&gt; <span class="keyword">class </span>...TAdapters&gt;</div>
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno">  810</span>    <span class="keyword">requires</span> <a class="code hl_concept" href="conceptsir_1_1_derived_from_t.html">DerivedFromT&lt;adapter, TAdapters&lt;TPolicy&gt;</a>...&gt;</div>
<div class="foldopen" id="foldopen00811" data-start="{" data-end="};">
<div class="line"><a id="l00811" name="l00811"></a><span class="lineno"><a class="line" href="classsir_1_1logger.html">  811</a></span>    <span class="keyword">class </span>logger : <span class="keyword">public</span> TAdapters&lt;TPolicy&gt;... {</div>
<div class="line"><a id="l00812" name="l00812"></a><span class="lineno">  812</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00813" name="l00813"></a><span class="lineno">  813</span>        logger() : TAdapters&lt;TPolicy&gt;()... {</div>
<div class="line"><a id="l00814" name="l00814"></a><span class="lineno">  814</span>            <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(RAII) {</div>
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno">  815</span>                [[maybe_unused]]</div>
<div class="line"><a id="l00816" name="l00816"></a><span class="lineno">  816</span>                <span class="keywordtype">bool</span> ok = <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(_init());</div>
<div class="line"><a id="l00817" name="l00817"></a><span class="lineno">  817</span>            }</div>
<div class="line"><a id="l00818" name="l00818"></a><span class="lineno">  818</span>        }</div>
<div class="line"><a id="l00819" name="l00819"></a><span class="lineno">  819</span> </div>
<div class="line"><a id="l00820" name="l00820"></a><span class="lineno">  820</span>        logger(<span class="keyword">const</span> logger&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno">  821</span>        logger(<span class="keyword">const</span> logger&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno">  822</span> </div>
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno">  823</span>        ~logger()<span class="keyword"> override </span>{</div>
<div class="line"><a id="l00824" name="l00824"></a><span class="lineno">  824</span>            <span class="keywordflow">if</span> <span class="keyword">constexpr</span>(RAII) {</div>
<div class="line"><a id="l00825" name="l00825"></a><span class="lineno">  825</span>                <span class="keywordflow">if</span> (!cleanup()) {</div>
<div class="line"><a id="l00826" name="l00826"></a><span class="lineno">  826</span>                    SIR_ASSERT(<span class="keyword">false</span>);</div>
<div class="line"><a id="l00827" name="l00827"></a><span class="lineno">  827</span>                }</div>
<div class="line"><a id="l00828" name="l00828"></a><span class="lineno">  828</span>            }</div>
<div class="line"><a id="l00829" name="l00829"></a><span class="lineno">  829</span>        }</div>
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno">  830</span> </div>
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno">  831</span>        logger&amp; operator=(<span class="keyword">const</span> logger&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno">  832</span>        logger&amp; operator=(<span class="keyword">const</span> logger&amp;&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno">  833</span> </div>
<div class="line"><a id="l00834" name="l00834"></a><span class="lineno">  834</span>        <span class="keywordtype">bool</span> init() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00835" name="l00835"></a><span class="lineno">  835</span>            <span class="keywordflow">return</span> is_initialized() ? <span class="keyword">false</span>: _init();</div>
<div class="line"><a id="l00836" name="l00836"></a><span class="lineno">  836</span>        }</div>
<div class="line"><a id="l00837" name="l00837"></a><span class="lineno">  837</span> </div>
<div class="line"><a id="l00838" name="l00838"></a><span class="lineno">  838</span>        <span class="keywordtype">bool</span> cleanup() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00839" name="l00839"></a><span class="lineno">  839</span>            <span class="keywordflow">return</span> is_initialized() ? <a class="code hl_function" href="group__publicfuncs.html#ga9bf3e92cefac01de4e3c6c359a58706f">sir_cleanup</a>() : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00840" name="l00840"></a><span class="lineno">  840</span>        }</div>
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno">  841</span> </div>
<div class="line"><a id="l00842" name="l00842"></a><span class="lineno">  842</span>        <span class="keywordtype">bool</span> is_initialized() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno">  843</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="group__publicfuncs.html#gac4cfb0e00a47760eb1778d78dd84b290">sir_isinitialized</a>();</div>
<div class="line"><a id="l00844" name="l00844"></a><span class="lineno">  844</span>        }</div>
<div class="line"><a id="l00845" name="l00845"></a><span class="lineno">  845</span> </div>
<div class="line"><a id="l00846" name="l00846"></a><span class="lineno">  846</span>        <a class="code hl_struct" href="structsir_1_1error.html">error</a> get_error()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00847" name="l00847"></a><span class="lineno">  847</span>            <span class="keywordflow">return</span> error::from_last_error();</div>
<div class="line"><a id="l00848" name="l00848"></a><span class="lineno">  848</span>        }</div>
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno">  849</span> </div>
<div class="line"><a id="l00850" name="l00850"></a><span class="lineno">  850</span>        <a class="code hl_struct" href="structsir_1_1error__info.html">error_info</a> get_error_info()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00851" name="l00851"></a><span class="lineno">  851</span>            <span class="keywordflow">return</span> error_info::from_last_error();</div>
<div class="line"><a id="l00852" name="l00852"></a><span class="lineno">  852</span>        }</div>
<div class="line"><a id="l00853" name="l00853"></a><span class="lineno">  853</span> </div>
<div class="line"><a id="l00854" name="l00854"></a><span class="lineno">  854</span>        <a class="code hl_typedef" href="group__publictypes.html#ga0da4ab4b4468b6b71cd8e924b2adf2e2">sirfileid</a> add_file(<span class="keyword">const</span> std::string&amp; path, <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a>&amp; levels,</div>
<div class="line"><a id="l00855" name="l00855"></a><span class="lineno">  855</span>            <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a>&amp; opts)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00856" name="l00856"></a><span class="lineno">  856</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> add = <a class="code hl_function" href="group__publicfuncs.html#gaa04f4ca1fc06e1d99ca4f0fd6422b573">sir_addfile</a>(path.c_str(), levels, opts);</div>
<div class="line"><a id="l00857" name="l00857"></a><span class="lineno">  857</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(add);</div>
<div class="line"><a id="l00858" name="l00858"></a><span class="lineno">  858</span>        }</div>
<div class="line"><a id="l00859" name="l00859"></a><span class="lineno">  859</span> </div>
<div class="line"><a id="l00860" name="l00860"></a><span class="lineno">  860</span>        <span class="keywordtype">bool</span> rem_file(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga0da4ab4b4468b6b71cd8e924b2adf2e2">sirfileid</a>&amp; <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00861" name="l00861"></a><span class="lineno">  861</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> rem = <a class="code hl_function" href="group__publicfuncs.html#gaba84f2fef8ac18a28483ee02c1c57240">sir_remfile</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00862" name="l00862"></a><span class="lineno">  862</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(rem);</div>
<div class="line"><a id="l00863" name="l00863"></a><span class="lineno">  863</span>        }</div>
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno">  864</span> </div>
<div class="line"><a id="l00865" name="l00865"></a><span class="lineno">  865</span>        <a class="code hl_typedef" href="group__publictypes.html#gadbc71df98df765cddfed4aa11c805470">sirpluginid</a> load_plugin(<span class="keyword">const</span> std::string&amp; path)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00866" name="l00866"></a><span class="lineno">  866</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> load = <a class="code hl_function" href="group__publicfuncs.html#ga1a50b52b3ce1af7543b76a219ff01060">sir_loadplugin</a>(path.c_str());</div>
<div class="line"><a id="l00867" name="l00867"></a><span class="lineno">  867</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(load);</div>
<div class="line"><a id="l00868" name="l00868"></a><span class="lineno">  868</span>        }</div>
<div class="line"><a id="l00869" name="l00869"></a><span class="lineno">  869</span> </div>
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno">  870</span>        <span class="keywordtype">bool</span> unload_plugin(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gadbc71df98df765cddfed4aa11c805470">sirpluginid</a>&amp; <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno">  871</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> unload = <a class="code hl_function" href="group__publicfuncs.html#ga6796c068e61eb505e8dd8e230fbc1423">sir_unloadplugin</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno">  872</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(unload);</div>
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno">  873</span>        }</div>
<div class="line"><a id="l00874" name="l00874"></a><span class="lineno">  874</span> </div>
<div class="line"><a id="l00875" name="l00875"></a><span class="lineno">  875</span>        <span class="keywordtype">bool</span> set_file_levels(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga0da4ab4b4468b6b71cd8e924b2adf2e2">sirfileid</a>&amp; <span class="keywordtype">id</span>, <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a>&amp; levels)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00876" name="l00876"></a><span class="lineno">  876</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga5a776d3d55e9f993eb0fad82788e1160">sir_filelevels</a>(<span class="keywordtype">id</span>, levels);</div>
<div class="line"><a id="l00877" name="l00877"></a><span class="lineno">  877</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00878" name="l00878"></a><span class="lineno">  878</span>        }</div>
<div class="line"><a id="l00879" name="l00879"></a><span class="lineno">  879</span> </div>
<div class="line"><a id="l00880" name="l00880"></a><span class="lineno">  880</span>        <span class="keywordtype">bool</span> set_file_options(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga0da4ab4b4468b6b71cd8e924b2adf2e2">sirfileid</a>&amp; <span class="keywordtype">id</span>, <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a>&amp; opts)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00881" name="l00881"></a><span class="lineno">  881</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#gaf14164a64eca824a2bae72ef4e9689cd">sir_fileopts</a>(<span class="keywordtype">id</span>, opts);</div>
<div class="line"><a id="l00882" name="l00882"></a><span class="lineno">  882</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00883" name="l00883"></a><span class="lineno">  883</span>        }</div>
<div class="line"><a id="l00884" name="l00884"></a><span class="lineno">  884</span> </div>
<div class="line"><a id="l00885" name="l00885"></a><span class="lineno">  885</span>        <span class="keywordtype">bool</span> set_text_style(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga076e759e9aa36cde2977f754a7ea186c">sir_level</a>&amp; level, <span class="keyword">const</span> <a class="code hl_enumeration" href="group__publictypes.html#ga1bf5e489a6af0dcb905788c1e7a5ec2d">sir_textattr</a>&amp; attr,</div>
<div class="line"><a id="l00886" name="l00886"></a><span class="lineno">  886</span>            <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a>&amp; fg, <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a>&amp; bg)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00887" name="l00887"></a><span class="lineno">  887</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga1a4726075fbcea9fc311f059e342213f">sir_settextstyle</a>(level, attr, fg, bg);</div>
<div class="line"><a id="l00888" name="l00888"></a><span class="lineno">  888</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno">  889</span>        }</div>
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno">  890</span> </div>
<div class="line"><a id="l00891" name="l00891"></a><span class="lineno">  891</span>        <span class="keywordtype">bool</span> reset_text_styles()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00892" name="l00892"></a><span class="lineno">  892</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> reset = <a class="code hl_function" href="group__publicfuncs.html#ga932eec2f9c73eecdd2b6b935452e5eed">sir_resettextstyles</a>();</div>
<div class="line"><a id="l00893" name="l00893"></a><span class="lineno">  893</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(reset);</div>
<div class="line"><a id="l00894" name="l00894"></a><span class="lineno">  894</span>        }</div>
<div class="line"><a id="l00895" name="l00895"></a><span class="lineno">  895</span> </div>
<div class="line"><a id="l00896" name="l00896"></a><span class="lineno">  896</span>        <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a> make_rgb(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a>&amp; r, <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a>&amp; g,</div>
<div class="line"><a id="l00897" name="l00897"></a><span class="lineno">  897</span>            <span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a>&amp; b)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00898" name="l00898"></a><span class="lineno">  898</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> make = <a class="code hl_function" href="group__publicfuncs.html#ga4691e42964819230e1f4b7fdf984ff66">sir_makergb</a>(r, g, b);</div>
<div class="line"><a id="l00899" name="l00899"></a><span class="lineno">  899</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(make);</div>
<div class="line"><a id="l00900" name="l00900"></a><span class="lineno">  900</span>        }</div>
<div class="line"><a id="l00901" name="l00901"></a><span class="lineno">  901</span> </div>
<div class="line"><a id="l00902" name="l00902"></a><span class="lineno">  902</span>        <span class="keywordtype">bool</span> set_color_mode(<span class="keyword">const</span> <a class="code hl_enumeration" href="group__publictypes.html#ga26686b620930358e8b50f287d6c96e51">sir_colormode</a>&amp; mode)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00903" name="l00903"></a><span class="lineno">  903</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga31639aba9a825f957a73689ef509f33d">sir_setcolormode</a>(mode);</div>
<div class="line"><a id="l00904" name="l00904"></a><span class="lineno">  904</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00905" name="l00905"></a><span class="lineno">  905</span>        }</div>
<div class="line"><a id="l00906" name="l00906"></a><span class="lineno">  906</span> </div>
<div class="line"><a id="l00907" name="l00907"></a><span class="lineno">  907</span>        <span class="keywordtype">bool</span> set_stdout_levels(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a>&amp; levels)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00908" name="l00908"></a><span class="lineno">  908</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga6f17febe99cb0beb6f8119283cc62d42">sir_stdoutlevels</a>(levels);</div>
<div class="line"><a id="l00909" name="l00909"></a><span class="lineno">  909</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00910" name="l00910"></a><span class="lineno">  910</span>        }</div>
<div class="line"><a id="l00911" name="l00911"></a><span class="lineno">  911</span> </div>
<div class="line"><a id="l00912" name="l00912"></a><span class="lineno">  912</span>        <span class="keywordtype">bool</span> set_stdout_options(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a>&amp; opts)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00913" name="l00913"></a><span class="lineno">  913</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#gac117aaf4a045115e58ba4471f9a4747f">sir_stdoutopts</a>(opts);</div>
<div class="line"><a id="l00914" name="l00914"></a><span class="lineno">  914</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00915" name="l00915"></a><span class="lineno">  915</span>        }</div>
<div class="line"><a id="l00916" name="l00916"></a><span class="lineno">  916</span> </div>
<div class="line"><a id="l00917" name="l00917"></a><span class="lineno">  917</span>        <span class="keywordtype">bool</span> set_stderr_levels(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a>&amp; levels)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00918" name="l00918"></a><span class="lineno">  918</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga421c13f6e269440cef0ac5c1ff3e65dd">sir_stderrlevels</a>(levels);</div>
<div class="line"><a id="l00919" name="l00919"></a><span class="lineno">  919</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00920" name="l00920"></a><span class="lineno">  920</span>        }</div>
<div class="line"><a id="l00921" name="l00921"></a><span class="lineno">  921</span> </div>
<div class="line"><a id="l00922" name="l00922"></a><span class="lineno">  922</span>        <span class="keywordtype">bool</span> set_stderr_options(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a>&amp; opts)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno">  923</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga0e78fb3ad87f02ef0f056a34200a4ab9">sir_stderropts</a>(opts);</div>
<div class="line"><a id="l00924" name="l00924"></a><span class="lineno">  924</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00925" name="l00925"></a><span class="lineno">  925</span>        }</div>
<div class="line"><a id="l00926" name="l00926"></a><span class="lineno">  926</span> </div>
<div class="line"><a id="l00927" name="l00927"></a><span class="lineno">  927</span>        <span class="keywordtype">bool</span> set_syslog_levels(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a>&amp; levels)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00928" name="l00928"></a><span class="lineno">  928</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga2b383287c821bb519868776a4d8bae83">sir_sysloglevels</a>(levels);</div>
<div class="line"><a id="l00929" name="l00929"></a><span class="lineno">  929</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00930" name="l00930"></a><span class="lineno">  930</span>        }</div>
<div class="line"><a id="l00931" name="l00931"></a><span class="lineno">  931</span> </div>
<div class="line"><a id="l00932" name="l00932"></a><span class="lineno">  932</span>        <span class="keywordtype">bool</span> set_syslog_options(<span class="keyword">const</span> <a class="code hl_typedef" href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a>&amp; opts)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00933" name="l00933"></a><span class="lineno">  933</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#ga5b32a04501257df43bbe56169ab383c2">sir_syslogopts</a>(opts);</div>
<div class="line"><a id="l00934" name="l00934"></a><span class="lineno">  934</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00935" name="l00935"></a><span class="lineno">  935</span>        }</div>
<div class="line"><a id="l00936" name="l00936"></a><span class="lineno">  936</span> </div>
<div class="line"><a id="l00937" name="l00937"></a><span class="lineno">  937</span>        <span class="keywordtype">bool</span> set_syslog_id(<span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00938" name="l00938"></a><span class="lineno">  938</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#gabc5831ef9b59c181b6ad7944c2ef1d5f">sir_syslogid</a>(<span class="keywordtype">id</span>.c_str());</div>
<div class="line"><a id="l00939" name="l00939"></a><span class="lineno">  939</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00940" name="l00940"></a><span class="lineno">  940</span>        }</div>
<div class="line"><a id="l00941" name="l00941"></a><span class="lineno">  941</span> </div>
<div class="line"><a id="l00942" name="l00942"></a><span class="lineno">  942</span>        <span class="keywordtype">bool</span> set_syslog_category(<span class="keyword">const</span> std::string&amp; category)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00943" name="l00943"></a><span class="lineno">  943</span>            <span class="keyword">const</span> <span class="keywordtype">bool</span> set = <a class="code hl_function" href="group__publicfuncs.html#gac48e99ced63f02c6999f50aca7c56efd">sir_syslogcat</a>(category.c_str());</div>
<div class="line"><a id="l00944" name="l00944"></a><span class="lineno">  944</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">throw_on_policy&lt;TPolicy&gt;</a>(set);</div>
<div class="line"><a id="l00945" name="l00945"></a><span class="lineno">  945</span>        }</div>
<div class="line"><a id="l00946" name="l00946"></a><span class="lineno">  946</span> </div>
<div class="line"><a id="l00947" name="l00947"></a><span class="lineno">  947</span>        std::string get_version_string()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00948" name="l00948"></a><span class="lineno">  948</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="group__publicfuncs.html#gad1e38749df3016bd75c3d7442b708ee9">sir_getversionstring</a>();</div>
<div class="line"><a id="l00949" name="l00949"></a><span class="lineno">  949</span>        }</div>
<div class="line"><a id="l00950" name="l00950"></a><span class="lineno">  950</span> </div>
<div class="line"><a id="l00951" name="l00951"></a><span class="lineno">  951</span>        uint32_t get_version_hex() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00952" name="l00952"></a><span class="lineno">  952</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="group__publicfuncs.html#ga747855ef6deb460266e79629d19451ab">sir_getversionhex</a>();</div>
<div class="line"><a id="l00953" name="l00953"></a><span class="lineno">  953</span>        }</div>
<div class="line"><a id="l00954" name="l00954"></a><span class="lineno">  954</span> </div>
<div class="line"><a id="l00955" name="l00955"></a><span class="lineno">  955</span>        <span class="keywordtype">bool</span> is_prerelease() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00956" name="l00956"></a><span class="lineno">  956</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="group__publicfuncs.html#gaf7c8bdb30b25e51a494271851677a8d3">sir_isprerelease</a>();</div>
<div class="line"><a id="l00957" name="l00957"></a><span class="lineno">  957</span>        }</div>
<div class="line"><a id="l00958" name="l00958"></a><span class="lineno">  958</span> </div>
<div class="line"><a id="l00959" name="l00959"></a><span class="lineno">  959</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00960" name="l00960"></a><span class="lineno">  960</span>        <span class="keywordtype">bool</span> _init() <span class="keyword">const</span> <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00961" name="l00961"></a><span class="lineno">  961</span>            TPolicy <a class="code hl_class" href="classsir_1_1policy.html">policy</a> {};</div>
<div class="line"><a id="l00962" name="l00962"></a><span class="lineno">  962</span>            <a class="code hl_struct" href="group__publictypes.html#structsirinit">sirinit</a> si {};</div>
<div class="line"><a id="l00963" name="l00963"></a><span class="lineno">  963</span>            <span class="keywordflow">if</span> (<span class="keyword">const</span> <span class="keywordtype">bool</span> init = <a class="code hl_class" href="classsir_1_1policy.html">policy</a>.<a class="code hl_function" href="classsir_1_1policy.html#ad90f4955785ed7bc45c9a5136f0f6a4d">get_init_data</a>(si) &amp;&amp; <a class="code hl_function" href="group__publicfuncs.html#gaa4f5707f5e4ed9702cde75a8c80c4e4a">sir_init</a>(&amp;si) &amp;&amp;</div>
<div class="line"><a id="l00964" name="l00964"></a><span class="lineno">  964</span>                <a class="code hl_class" href="classsir_1_1policy.html">policy</a>.<a class="code hl_function" href="classsir_1_1policy.html#aa799babbc9291dcdef56556b46edadd0">on_init_complete</a>(); !init) {</div>
<div class="line"><a id="l00965" name="l00965"></a><span class="lineno">  965</span>                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00966" name="l00966"></a><span class="lineno">  966</span>            }</div>
<div class="line"><a id="l00967" name="l00967"></a><span class="lineno">  967</span>            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00968" name="l00968"></a><span class="lineno">  968</span>        }</div>
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno">  969</span>    };</div>
</div>
<div class="line"><a id="l00970" name="l00970"></a><span class="lineno">  970</span></div>
<div class="line"><a id="l00975" name="l00975"></a><span class="lineno"><a class="line" href="namespacesir.html#afea168ed2dc59a4b8ab004364a6f4112">  975</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#afea168ed2dc59a4b8ab004364a6f4112">default_logger</a> = <a class="code hl_class" href="classsir_1_1logger.html">logger&lt;true, default_policy, default_adapter&gt;</a>;</div>
<div class="line"><a id="l00976" name="l00976"></a><span class="lineno">  976</span> </div>
<div class="line"><a id="l00977" name="l00977"></a><span class="lineno">  977</span><span class="preprocessor"># if defined(__SIR_HAVE_STD_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00983" name="l00983"></a><span class="lineno"><a class="line" href="namespacesir.html#ae08772b1ec0bd141c79d99fc4ba2d6ce">  983</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#ae08772b1ec0bd141c79d99fc4ba2d6ce">std_format_logger</a> = <a class="code hl_class" href="classsir_1_1logger.html">logger</a></div>
<div class="line"><a id="l00984" name="l00984"></a><span class="lineno">  984</span>    &lt;</div>
<div class="line"><a id="l00985" name="l00985"></a><span class="lineno">  985</span>        <span class="keyword">true</span>,</div>
<div class="line"><a id="l00986" name="l00986"></a><span class="lineno">  986</span>        <a class="code hl_class" href="classsir_1_1default__policy.html">default_policy</a>,</div>
<div class="line"><a id="l00987" name="l00987"></a><span class="lineno">  987</span>        <a class="code hl_class" href="classsir_1_1default__adapter.html">default_adapter</a>,</div>
<div class="line"><a id="l00988" name="l00988"></a><span class="lineno">  988</span>        <a class="code hl_class" href="classsir_1_1std__format__adapter.html">std_format_adapter</a></div>
<div class="line"><a id="l00989" name="l00989"></a><span class="lineno">  989</span>    &gt;;</div>
<div class="line"><a id="l00990" name="l00990"></a><span class="lineno">  990</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00991" name="l00991"></a><span class="lineno">  991</span> </div>
<div class="line"><a id="l00992" name="l00992"></a><span class="lineno">  992</span><span class="preprocessor"># if defined(__SIR_HAVE_BOOST_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00998" name="l00998"></a><span class="lineno"><a class="line" href="namespacesir.html#a9a3c14fe6dc0ce95abd6a5d823f3dada">  998</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#a9a3c14fe6dc0ce95abd6a5d823f3dada">boost_logger</a> = <a class="code hl_class" href="classsir_1_1logger.html">logger</a></div>
<div class="line"><a id="l00999" name="l00999"></a><span class="lineno">  999</span>    &lt;</div>
<div class="line"><a id="l01000" name="l01000"></a><span class="lineno"> 1000</span>        <span class="keyword">true</span>,</div>
<div class="line"><a id="l01001" name="l01001"></a><span class="lineno"> 1001</span>        <a class="code hl_class" href="classsir_1_1default__policy.html">default_policy</a>,</div>
<div class="line"><a id="l01002" name="l01002"></a><span class="lineno"> 1002</span>        <a class="code hl_class" href="classsir_1_1default__adapter.html">default_adapter</a>,</div>
<div class="line"><a id="l01003" name="l01003"></a><span class="lineno"> 1003</span>        <a class="code hl_class" href="classsir_1_1boost__format__adapter.html">boost_format_adapter</a></div>
<div class="line"><a id="l01004" name="l01004"></a><span class="lineno"> 1004</span>    &gt;;</div>
<div class="line"><a id="l01005" name="l01005"></a><span class="lineno"> 1005</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l01006" name="l01006"></a><span class="lineno"> 1006</span> </div>
<div class="line"><a id="l01007" name="l01007"></a><span class="lineno"> 1007</span><span class="preprocessor"># if defined(__SIR_HAVE_FMT_FORMAT__)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01013" name="l01013"></a><span class="lineno"><a class="line" href="namespacesir.html#abcbcc21fee81bc437c75083b90688e6a"> 1013</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#abcbcc21fee81bc437c75083b90688e6a">fmt_logger</a> = <a class="code hl_class" href="classsir_1_1logger.html">logger</a></div>
<div class="line"><a id="l01014" name="l01014"></a><span class="lineno"> 1014</span>    &lt;</div>
<div class="line"><a id="l01015" name="l01015"></a><span class="lineno"> 1015</span>        <span class="keyword">true</span>,</div>
<div class="line"><a id="l01016" name="l01016"></a><span class="lineno"> 1016</span>        <a class="code hl_class" href="classsir_1_1default__policy.html">default_policy</a>,</div>
<div class="line"><a id="l01017" name="l01017"></a><span class="lineno"> 1017</span>        <a class="code hl_class" href="classsir_1_1default__adapter.html">default_adapter</a>,</div>
<div class="line"><a id="l01018" name="l01018"></a><span class="lineno"> 1018</span>        <a class="code hl_class" href="classsir_1_1fmt__format__adapter.html">fmt_format_adapter</a></div>
<div class="line"><a id="l01019" name="l01019"></a><span class="lineno"> 1019</span>    &gt;;</div>
<div class="line"><a id="l01020" name="l01020"></a><span class="lineno"> 1020</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l01021" name="l01021"></a><span class="lineno"> 1021</span> </div>
<div class="line"><a id="l01022" name="l01022"></a><span class="lineno"> 1022</span><span class="preprocessor"># if !defined(SIR_NO_STD_IOSTREAM)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01028" name="l01028"></a><span class="lineno"><a class="line" href="namespacesir.html#adf1c3a7184436b3e0e7145325e867f0a"> 1028</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="namespacesir.html#adf1c3a7184436b3e0e7145325e867f0a">iostream_logger</a> = <a class="code hl_class" href="classsir_1_1logger.html">logger</a></div>
<div class="line"><a id="l01029" name="l01029"></a><span class="lineno"> 1029</span>    &lt;</div>
<div class="line"><a id="l01030" name="l01030"></a><span class="lineno"> 1030</span>        <span class="keyword">true</span>,</div>
<div class="line"><a id="l01031" name="l01031"></a><span class="lineno"> 1031</span>        <a class="code hl_class" href="classsir_1_1default__policy.html">default_policy</a>,</div>
<div class="line"><a id="l01032" name="l01032"></a><span class="lineno"> 1032</span>        <a class="code hl_class" href="classsir_1_1default__adapter.html">default_adapter</a>,</div>
<div class="line"><a id="l01033" name="l01033"></a><span class="lineno"> 1033</span>        <a class="code hl_class" href="classsir_1_1std__iostream__adapter.html">std_iostream_adapter</a></div>
<div class="line"><a id="l01034" name="l01034"></a><span class="lineno"> 1034</span>    &gt;;</div>
<div class="line"><a id="l01035" name="l01035"></a><span class="lineno"> 1035</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l01036" name="l01036"></a><span class="lineno"> 1036</span> </div>
<div class="line"><a id="l01037" name="l01037"></a><span class="lineno"> 1037</span>} <span class="comment">// ! namespace sir</span></div>
</div>
<div class="line"><a id="l01038" name="l01038"></a><span class="lineno"> 1038</span></div>
<div class="line"><a id="l01043" name="l01043"></a><span class="lineno"> 1043</span> </div>
<div class="line"><a id="l01044" name="l01044"></a><span class="lineno"> 1044</span><span class="preprocessor">#endif </span><span class="comment">// !_SIR_HH_INCLUDED</span></div>
<div class="ttc" id="aclasssir_1_1boost__format__adapter_html"><div class="ttname"><a href="classsir_1_1boost__format__adapter.html">sir::boost_format_adapter</a></div><div class="ttdoc">Adapter for boost::format (when available).</div><div class="ttdef"><b>Definition</b> sir.hh:501</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html"><div class="ttname"><a href="classsir_1_1default__adapter.html">sir::default_adapter</a></div><div class="ttdoc">The default adapter implementation.</div><div class="ttdef"><b>Definition</b> sir.hh:310</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_a583dd799f546f5c61dfc19c8e0e4bd7d"><div class="ttname"><a href="classsir_1_1default__adapter.html#a583dd799f546f5c61dfc19c8e0e4bd7d">sir::default_adapter::crit</a></div><div class="ttdeci">bool crit(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs a critical message (see sir_crit).</div><div class="ttdef"><b>Definition</b> sir.hh:362</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_a5c8728d42da733f00f5c0ce939978228"><div class="ttname"><a href="classsir_1_1default__adapter.html#a5c8728d42da733f00f5c0ce939978228">sir::default_adapter::debug</a></div><div class="ttdeci">bool debug(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs a debug message (see sir_debug).</div><div class="ttdef"><b>Definition</b> sir.hh:317</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_a9138545e92545d167c2b6e9b3bbbd401"><div class="ttname"><a href="classsir_1_1default__adapter.html#a9138545e92545d167c2b6e9b3bbbd401">sir::default_adapter::warn</a></div><div class="ttdeci">bool warn(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs a warning message (see sir_warn).</div><div class="ttdef"><b>Definition</b> sir.hh:344</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_a97abc9b8dd4bce5e866ddc3687c3f334"><div class="ttname"><a href="classsir_1_1default__adapter.html#a97abc9b8dd4bce5e866ddc3687c3f334">sir::default_adapter::error</a></div><div class="ttdeci">bool error(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs an error message (see sir_error).</div><div class="ttdef"><b>Definition</b> sir.hh:353</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_a9c01f5ee581dcad13fe30bcd1dd7034b"><div class="ttname"><a href="classsir_1_1default__adapter.html#a9c01f5ee581dcad13fe30bcd1dd7034b">sir::default_adapter::notice</a></div><div class="ttdeci">bool notice(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs a notice message (see sir_notice).</div><div class="ttdef"><b>Definition</b> sir.hh:335</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_ac6cc004d815f3a236f871d1207df6753"><div class="ttname"><a href="classsir_1_1default__adapter.html#ac6cc004d815f3a236f871d1207df6753">sir::default_adapter::emerg</a></div><div class="ttdeci">bool emerg(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs an emergency message (see sir_emerg).</div><div class="ttdef"><b>Definition</b> sir.hh:380</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_ae53142d862fd43568532520310a76a1b"><div class="ttname"><a href="classsir_1_1default__adapter.html#ae53142d862fd43568532520310a76a1b">sir::default_adapter::info</a></div><div class="ttdeci">bool info(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs an informational message (see sir_info).</div><div class="ttdef"><b>Definition</b> sir.hh:326</div></div>
<div class="ttc" id="aclasssir_1_1default__adapter_html_afa77598ec0807239b158c1af4e9881df"><div class="ttname"><a href="classsir_1_1default__adapter.html#afa77598ec0807239b158c1af4e9881df">sir::default_adapter::alert</a></div><div class="ttdeci">bool alert(PRINTF_FORMAT const char *format,...) const</div><div class="ttdoc">Logs an alert message (see sir_alert).</div><div class="ttdef"><b>Definition</b> sir.hh:371</div></div>
<div class="ttc" id="aclasssir_1_1default__policy_html"><div class="ttname"><a href="classsir_1_1default__policy.html">sir::default_policy</a></div><div class="ttdoc">In the event that no custom configuration or behavior is desired, provides defaults for everything.</div><div class="ttdef"><b>Definition</b> sir.hh:237</div></div>
<div class="ttc" id="aclasssir_1_1default__policy_html_a1acad8a59d338fcdba4b6a7bfa7711f4"><div class="ttname"><a href="classsir_1_1default__policy.html#a1acad8a59d338fcdba4b6a7bfa7711f4">sir::default_policy::get_init_data</a></div><div class="ttdeci">bool get_init_data(sirinit &amp;data) const noexcept final</div><div class="ttdoc">Called by logger before initializing libsir.</div><div class="ttdef"><b>Definition</b> sir.hh:242</div></div>
<div class="ttc" id="aclasssir_1_1default__policy_html_ae73d8edbd0dc7ba668c59634511efa87"><div class="ttname"><a href="classsir_1_1default__policy.html#ae73d8edbd0dc7ba668c59634511efa87">sir::default_policy::on_init_complete</a></div><div class="ttdeci">constexpr bool on_init_complete() const noexcept final</div><div class="ttdoc">Called by logger immediately after libsir has been initialized.</div><div class="ttdef"><b>Definition</b> sir.hh:246</div></div>
<div class="ttc" id="aclasssir_1_1exception_html"><div class="ttname"><a href="classsir_1_1exception.html">sir::exception</a></div><div class="ttdoc">The exception type thrown by libsir.</div><div class="ttdef"><b>Definition</b> sir.hh:144</div></div>
<div class="ttc" id="aclasssir_1_1fmt__format__adapter_html"><div class="ttname"><a href="classsir_1_1fmt__format__adapter.html">sir::fmt_format_adapter</a></div><div class="ttdoc">Adapter for {fmt} (when available).</div><div class="ttdef"><b>Definition</b> sir.hh:573</div></div>
<div class="ttc" id="aclasssir_1_1logger_html"><div class="ttname"><a href="classsir_1_1logger.html">sir::logger</a></div><div class="ttdoc">The primary C++ interface to libsir.</div><div class="ttdef"><b>Definition</b> sir.hh:811</div></div>
<div class="ttc" id="aclasssir_1_1policy_html"><div class="ttname"><a href="classsir_1_1policy.html">sir::policy</a></div><div class="ttdoc">Defines the partially abstract interface for a policy which controls the behavior of logger at runtim...</div><div class="ttdef"><b>Definition</b> sir.hh:162</div></div>
<div class="ttc" id="aclasssir_1_1policy_html_aa799babbc9291dcdef56556b46edadd0"><div class="ttname"><a href="classsir_1_1policy.html#aa799babbc9291dcdef56556b46edadd0">sir::policy::on_init_complete</a></div><div class="ttdeci">virtual bool on_init_complete() const noexcept=0</div><div class="ttdoc">Called by logger immediately after libsir has been initialized.</div></div>
<div class="ttc" id="aclasssir_1_1policy_html_abd4159da84207f2bcbd9fd2ce78e2640"><div class="ttname"><a href="classsir_1_1policy.html#abd4159da84207f2bcbd9fd2ce78e2640">sir::policy::throw_on_error</a></div><div class="ttdeci">static constexpr bool throw_on_error() noexcept</div><div class="ttdoc">Determines whether or not exceptions are thrown in the event that an unercoverable error is encounter...</div><div class="ttdef"><b>Definition</b> sir.hh:219</div></div>
<div class="ttc" id="aclasssir_1_1policy_html_ad90f4955785ed7bc45c9a5136f0f6a4d"><div class="ttname"><a href="classsir_1_1policy.html#ad90f4955785ed7bc45c9a5136f0f6a4d">sir::policy::get_init_data</a></div><div class="ttdeci">virtual bool get_init_data(sirinit &amp;data) const noexcept=0</div><div class="ttdoc">Called by logger before initializing libsir.</div></div>
<div class="ttc" id="aclasssir_1_1std__format__adapter_html"><div class="ttname"><a href="classsir_1_1std__format__adapter.html">sir::std_format_adapter</a></div><div class="ttdoc">Adapter for std::format (when available).</div><div class="ttdef"><b>Definition</b> sir.hh:413</div></div>
<div class="ttc" id="aclasssir_1_1std__iostream__adapter_html"><div class="ttname"><a href="classsir_1_1std__iostream__adapter.html">sir::std_iostream_adapter</a></div><div class="ttdoc">Provides a std::iostream interface to libsir&#39;s logging functions.</div><div class="ttdef"><b>Definition</b> sir.hh:667</div></div>
<div class="ttc" id="aconceptsir_1_1_derived_from_policy_html"><div class="ttname"><a href="conceptsir_1_1_derived_from_policy.html">sir::DerivedFromPolicy</a></div><div class="ttdoc">Ensures that T derives from policy.</div><div class="ttdef"><b>Definition</b> sir.hh:226</div></div>
<div class="ttc" id="aconceptsir_1_1_derived_from_stream_buf_html"><div class="ttname"><a href="conceptsir_1_1_derived_from_stream_buf.html">sir::DerivedFromStreamBuf</a></div><div class="ttdoc">Ensures that T derives from std::streambuf.</div><div class="ttdef"><b>Definition</b> sir.hh:639</div></div>
<div class="ttc" id="aconceptsir_1_1_derived_from_t_html"><div class="ttname"><a href="conceptsir_1_1_derived_from_t.html">sir::DerivedFromT</a></div><div class="ttdoc">True if all Ts are derived classes of TBase, otherwise false.</div><div class="ttdef"><b>Definition</b> sir.hh:789</div></div>
<div class="ttc" id="aconfig_8h_html_ad6fce840144259e992c33fb611f31262"><div class="ttname"><a href="config_8h.html#ad6fce840144259e992c33fb611f31262">SIR_MAXERROR</a></div><div class="ttdeci">#define SIR_MAXERROR</div><div class="ttdoc">The maximum size, in characters, of an error message.</div><div class="ttdef"><b>Definition</b> config.h:419</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga0e78fb3ad87f02ef0f056a34200a4ab9"><div class="ttname"><a href="group__publicfuncs.html#ga0e78fb3ad87f02ef0f056a34200a4ab9">sir_stderropts</a></div><div class="ttdeci">bool sir_stderropts(sir_options opts)</div><div class="ttdoc">Set new formatting options for stderr.</div><div class="ttdef"><b>Definition</b> sir.c:211</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga1a4726075fbcea9fc311f059e342213f"><div class="ttname"><a href="group__publicfuncs.html#ga1a4726075fbcea9fc311f059e342213f">sir_settextstyle</a></div><div class="ttdeci">bool sir_settextstyle(sir_level level, sir_textattr attr, sir_textcolor fg, sir_textcolor bg)</div><div class="ttdoc">Set new text styling for stdio (stdout/stderr) destinations on a per-level basis.</div><div class="ttdef"><b>Definition</b> sir.c:170</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga1a50b52b3ce1af7543b76a219ff01060"><div class="ttname"><a href="group__publicfuncs.html#ga1a50b52b3ce1af7543b76a219ff01060">sir_loadplugin</a></div><div class="ttdeci">sirpluginid sir_loadplugin(const char *path)</div><div class="ttdoc">Loads a plugin module from disk.</div><div class="ttdef"><b>Definition</b> sir.c:140</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga235d760d94e67fcf82ccc16c77a8249e"><div class="ttname"><a href="group__publicfuncs.html#ga235d760d94e67fcf82ccc16c77a8249e">sir_alert</a></div><div class="ttdeci">bool sir_alert(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_ALERT level message.</div><div class="ttdef"><b>Definition</b> sir.c:117</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga2b383287c821bb519868776a4d8bae83"><div class="ttname"><a href="group__publicfuncs.html#ga2b383287c821bb519868776a4d8bae83">sir_sysloglevels</a></div><div class="ttdeci">bool sir_sysloglevels(sir_levels levels)</div><div class="ttdoc">Set new level registrations for the system logger destination.</div><div class="ttdef"><b>Definition</b> sir.c:217</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga31639aba9a825f957a73689ef509f33d"><div class="ttname"><a href="group__publicfuncs.html#ga31639aba9a825f957a73689ef509f33d">sir_setcolormode</a></div><div class="ttdeci">bool sir_setcolormode(sir_colormode mode)</div><div class="ttdoc">Sets the ANSI color mode for stdio destinations.</div><div class="ttdef"><b>Definition</b> sir.c:189</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga3955274b94bf3d09ad8ebefd93035aa3"><div class="ttname"><a href="group__publicfuncs.html#ga3955274b94bf3d09ad8ebefd93035aa3">sir_error</a></div><div class="ttdeci">bool sir_error(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_ERROR level message.</div><div class="ttdef"><b>Definition</b> sir.c:101</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga3b8cad62f929e549f2d031470e3a1fc7"><div class="ttname"><a href="group__publicfuncs.html#ga3b8cad62f929e549f2d031470e3a1fc7">sir_notice</a></div><div class="ttdeci">bool sir_notice(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_NOTICE level message.</div><div class="ttdef"><b>Definition</b> sir.c:85</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga421c13f6e269440cef0ac5c1ff3e65dd"><div class="ttname"><a href="group__publicfuncs.html#ga421c13f6e269440cef0ac5c1ff3e65dd">sir_stderrlevels</a></div><div class="ttdeci">bool sir_stderrlevels(sir_levels levels)</div><div class="ttdoc">Set new level registrations for stderr.</div><div class="ttdef"><b>Definition</b> sir.c:205</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga4691e42964819230e1f4b7fdf984ff66"><div class="ttname"><a href="group__publicfuncs.html#ga4691e42964819230e1f4b7fdf984ff66">sir_makergb</a></div><div class="ttdeci">sir_textcolor sir_makergb(sir_textcolor r, sir_textcolor g, sir_textcolor b)</div><div class="ttdoc">Creates a sir_textcolor from red, green, and blue components.</div><div class="ttdef"><b>Definition</b> sir.c:185</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga5a776d3d55e9f993eb0fad82788e1160"><div class="ttname"><a href="group__publicfuncs.html#ga5a776d3d55e9f993eb0fad82788e1160">sir_filelevels</a></div><div class="ttdeci">bool sir_filelevels(sirfileid id, sir_levels levels)</div><div class="ttdoc">Set new level registrations for a log file already managed by libsir.</div><div class="ttdef"><b>Definition</b> sir.c:158</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga5b32a04501257df43bbe56169ab383c2"><div class="ttname"><a href="group__publicfuncs.html#ga5b32a04501257df43bbe56169ab383c2">sir_syslogopts</a></div><div class="ttdeci">bool sir_syslogopts(sir_options opts)</div><div class="ttdoc">Set new formatting options for the system logger destination.</div><div class="ttdef"><b>Definition</b> sir.c:228</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga6796c068e61eb505e8dd8e230fbc1423"><div class="ttname"><a href="group__publicfuncs.html#ga6796c068e61eb505e8dd8e230fbc1423">sir_unloadplugin</a></div><div class="ttdeci">bool sir_unloadplugin(sirpluginid id)</div><div class="ttdoc">Unloads a previously registered plugin module.</div><div class="ttdef"><b>Definition</b> sir.c:149</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga6f17febe99cb0beb6f8119283cc62d42"><div class="ttname"><a href="group__publicfuncs.html#ga6f17febe99cb0beb6f8119283cc62d42">sir_stdoutlevels</a></div><div class="ttdeci">bool sir_stdoutlevels(sir_levels levels)</div><div class="ttdoc">Set new level registrations for stdout.</div><div class="ttdef"><b>Definition</b> sir.c:193</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga747855ef6deb460266e79629d19451ab"><div class="ttname"><a href="group__publicfuncs.html#ga747855ef6deb460266e79629d19451ab">sir_getversionhex</a></div><div class="ttdeci">uint32_t sir_getversionhex(void)</div><div class="ttdoc">Returns the current libsir version as a number.</div><div class="ttdef"><b>Definition</b> sir.c:263</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga7e2563198d16d5c7ba7bdf55fec9215c"><div class="ttname"><a href="group__publicfuncs.html#ga7e2563198d16d5c7ba7bdf55fec9215c">sir_debug</a></div><div class="ttdeci">bool sir_debug(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_DEBUG level message.</div><div class="ttdef"><b>Definition</b> sir.c:69</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga932eec2f9c73eecdd2b6b935452e5eed"><div class="ttname"><a href="group__publicfuncs.html#ga932eec2f9c73eecdd2b6b935452e5eed">sir_resettextstyles</a></div><div class="ttdeci">bool sir_resettextstyles(void)</div><div class="ttdoc">Reset text styling for stdio (stdout/stderr) destinations to their default values.</div><div class="ttdef"><b>Definition</b> sir.c:181</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga9aa2c092ae4ff0bf75043dce10166661"><div class="ttname"><a href="group__publicfuncs.html#ga9aa2c092ae4ff0bf75043dce10166661">sir_info</a></div><div class="ttdeci">bool sir_info(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_INFO level message.</div><div class="ttdef"><b>Definition</b> sir.c:77</div></div>
<div class="ttc" id="agroup__publicfuncs_html_ga9bf3e92cefac01de4e3c6c359a58706f"><div class="ttname"><a href="group__publicfuncs.html#ga9bf3e92cefac01de4e3c6c359a58706f">sir_cleanup</a></div><div class="ttdeci">bool sir_cleanup(void)</div><div class="ttdoc">Tears down and cleans up libsir after use.</div><div class="ttdef"><b>Definition</b> sir.c:52</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaa04f4ca1fc06e1d99ca4f0fd6422b573"><div class="ttname"><a href="group__publicfuncs.html#gaa04f4ca1fc06e1d99ca4f0fd6422b573">sir_addfile</a></div><div class="ttdeci">sirfileid sir_addfile(const char *path, sir_levels levels, sir_options opts)</div><div class="ttdoc">Adds a log file and registers it to receive log output.</div><div class="ttdef"><b>Definition</b> sir.c:132</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaa4f5707f5e4ed9702cde75a8c80c4e4a"><div class="ttname"><a href="group__publicfuncs.html#gaa4f5707f5e4ed9702cde75a8c80c4e4a">sir_init</a></div><div class="ttdeci">bool sir_init(sirinit *si)</div><div class="ttdoc">Initializes libsir for use.</div><div class="ttdef"><b>Definition</b> sir.c:48</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gab4836aea12ba1a2b187f325a416ea9c2"><div class="ttname"><a href="group__publicfuncs.html#gab4836aea12ba1a2b187f325a416ea9c2">sir_crit</a></div><div class="ttdeci">bool sir_crit(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_CRIT level message.</div><div class="ttdef"><b>Definition</b> sir.c:109</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaba84f2fef8ac18a28483ee02c1c57240"><div class="ttname"><a href="group__publicfuncs.html#gaba84f2fef8ac18a28483ee02c1c57240">sir_remfile</a></div><div class="ttdeci">bool sir_remfile(sirfileid id)</div><div class="ttdoc">Removes a file previously added to libsir.</div><div class="ttdef"><b>Definition</b> sir.c:136</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gabc5831ef9b59c181b6ad7944c2ef1d5f"><div class="ttname"><a href="group__publicfuncs.html#gabc5831ef9b59c181b6ad7944c2ef1d5f">sir_syslogid</a></div><div class="ttdeci">bool sir_syslogid(const char *identity)</div><div class="ttdoc">Set new system logger identity.</div><div class="ttdef"><b>Definition</b> sir.c:239</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gabf71ddaf533f10cf278986d4bdb3f76f"><div class="ttname"><a href="group__publicfuncs.html#gabf71ddaf533f10cf278986d4bdb3f76f">sir_warn</a></div><div class="ttdeci">bool sir_warn(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_WARN level message.</div><div class="ttdef"><b>Definition</b> sir.c:93</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gac0c399c73c25d1128befc6b75cbae300"><div class="ttname"><a href="group__publicfuncs.html#gac0c399c73c25d1128befc6b75cbae300">sir_geterror</a></div><div class="ttdeci">uint16_t sir_geterror(char message[SIR_MAXERROR])</div><div class="ttdoc">Retrieves a formatted message for the last error that occurred on the calling thread and returns the ...</div><div class="ttdef"><b>Definition</b> sir.c:60</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gac117aaf4a045115e58ba4471f9a4747f"><div class="ttname"><a href="group__publicfuncs.html#gac117aaf4a045115e58ba4471f9a4747f">sir_stdoutopts</a></div><div class="ttdeci">bool sir_stdoutopts(sir_options opts)</div><div class="ttdoc">Set new formatting options for stdout.</div><div class="ttdef"><b>Definition</b> sir.c:199</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gac21fb86ac7e7710400bf8b642887ad96"><div class="ttname"><a href="group__publicfuncs.html#gac21fb86ac7e7710400bf8b642887ad96">sir_makeinit</a></div><div class="ttdeci">bool sir_makeinit(sirinit *si)</div><div class="ttdoc">Fills out a sirinit structure with default values.</div><div class="ttdef"><b>Definition</b> sir.c:44</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gac48e99ced63f02c6999f50aca7c56efd"><div class="ttname"><a href="group__publicfuncs.html#gac48e99ced63f02c6999f50aca7c56efd">sir_syslogcat</a></div><div class="ttdeci">bool sir_syslogcat(const char *category)</div><div class="ttdoc">Set new system logger category.</div><div class="ttdef"><b>Definition</b> sir.c:249</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gac4cfb0e00a47760eb1778d78dd84b290"><div class="ttname"><a href="group__publicfuncs.html#gac4cfb0e00a47760eb1778d78dd84b290">sir_isinitialized</a></div><div class="ttdeci">bool sir_isinitialized(void)</div><div class="ttdoc">Determines whether or not libsir is in the initialized state.</div><div class="ttdef"><b>Definition</b> sir.c:56</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gad1e38749df3016bd75c3d7442b708ee9"><div class="ttname"><a href="group__publicfuncs.html#gad1e38749df3016bd75c3d7442b708ee9">sir_getversionstring</a></div><div class="ttdeci">const char * sir_getversionstring(void)</div><div class="ttdoc">Returns the current libsir version as a string.</div><div class="ttdef"><b>Definition</b> sir.c:259</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaedefdc4fb0546a210740ad0fb87f7b34"><div class="ttname"><a href="group__publicfuncs.html#gaedefdc4fb0546a210740ad0fb87f7b34">sir_geterrorinfo</a></div><div class="ttdeci">void sir_geterrorinfo(sir_errorinfo *err)</div><div class="ttdoc">Retrieves granular information about the last error that occurred on the calling thread.</div><div class="ttdef"><b>Definition</b> sir.c:64</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaf14164a64eca824a2bae72ef4e9689cd"><div class="ttname"><a href="group__publicfuncs.html#gaf14164a64eca824a2bae72ef4e9689cd">sir_fileopts</a></div><div class="ttdeci">bool sir_fileopts(sirfileid id, sir_options opts)</div><div class="ttdoc">Set new formatting options for a log file already managed by libsir.</div><div class="ttdef"><b>Definition</b> sir.c:164</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaf7c8bdb30b25e51a494271851677a8d3"><div class="ttname"><a href="group__publicfuncs.html#gaf7c8bdb30b25e51a494271851677a8d3">sir_isprerelease</a></div><div class="ttdeci">bool sir_isprerelease(void)</div><div class="ttdoc">Whether or not this is a pre-release version of libsir.</div><div class="ttdef"><b>Definition</b> sir.c:267</div></div>
<div class="ttc" id="agroup__publicfuncs_html_gaf94f3dcbd6a14e81f6eca555733dce23"><div class="ttname"><a href="group__publicfuncs.html#gaf94f3dcbd6a14e81f6eca555733dce23">sir_emerg</a></div><div class="ttdeci">bool sir_emerg(PRINTF_FORMAT const char *format,...)</div><div class="ttdoc">Dispatches a SIRL_EMERG level message.</div><div class="ttdef"><b>Definition</b> sir.c:125</div></div>
<div class="ttc" id="agroup__publictypes_html_ga076e759e9aa36cde2977f754a7ea186c"><div class="ttname"><a href="group__publictypes.html#ga076e759e9aa36cde2977f754a7ea186c">sir_level</a></div><div class="ttdeci">uint16_t sir_level</div><div class="ttdoc">The sir_level type.</div><div class="ttdef"><b>Definition</b> types.h:71</div></div>
<div class="ttc" id="agroup__publictypes_html_ga0da4ab4b4468b6b71cd8e924b2adf2e2"><div class="ttname"><a href="group__publictypes.html#ga0da4ab4b4468b6b71cd8e924b2adf2e2">sirfileid</a></div><div class="ttdeci">uint32_t sirfileid</div><div class="ttdoc">Log file identifier type.</div><div class="ttdef"><b>Definition</b> types.h:49</div></div>
<div class="ttc" id="agroup__publictypes_html_ga1bf5e489a6af0dcb905788c1e7a5ec2d"><div class="ttname"><a href="group__publictypes.html#ga1bf5e489a6af0dcb905788c1e7a5ec2d">sir_textattr</a></div><div class="ttdeci">sir_textattr</div><div class="ttdoc">Attributes for stdio output.</div><div class="ttdef"><b>Definition</b> types.h:107</div></div>
<div class="ttc" id="agroup__publictypes_html_ga2409f97357f1eb510ababeb6e0a030e8"><div class="ttname"><a href="group__publictypes.html#ga2409f97357f1eb510ababeb6e0a030e8">SIRL_EMERG</a></div><div class="ttdeci">#define SIRL_EMERG</div><div class="ttdoc">Nuclear war, Armageddon, etc.</div><div class="ttdef"><b>Definition</b> types.h:59</div></div>
<div class="ttc" id="agroup__publictypes_html_ga26686b620930358e8b50f287d6c96e51"><div class="ttname"><a href="group__publictypes.html#ga26686b620930358e8b50f287d6c96e51">sir_colormode</a></div><div class="ttdeci">sir_colormode</div><div class="ttdoc">Color mode selection.</div><div class="ttdef"><b>Definition</b> types.h:99</div></div>
<div class="ttc" id="agroup__publictypes_html_ga39dffb8c9c5100251098820cb5b48446"><div class="ttname"><a href="group__publictypes.html#ga39dffb8c9c5100251098820cb5b48446">SIRL_ERROR</a></div><div class="ttdeci">#define SIRL_ERROR</div><div class="ttdoc">Errors.</div><div class="ttdef"><b>Definition</b> types.h:62</div></div>
<div class="ttc" id="agroup__publictypes_html_ga7ee5f2908abd2df9e89bcab0b6608edd"><div class="ttname"><a href="group__publictypes.html#ga7ee5f2908abd2df9e89bcab0b6608edd">sir_levels</a></div><div class="ttdeci">uint16_t sir_levels</div><div class="ttdoc">sir_level bitmask type.</div><div class="ttdef"><b>Definition</b> types.h:74</div></div>
<div class="ttc" id="agroup__publictypes_html_ga8549494d396c96ba66b5b78b298cff7d"><div class="ttname"><a href="group__publictypes.html#ga8549494d396c96ba66b5b78b298cff7d">SIRL_ALERT</a></div><div class="ttdeci">#define SIRL_ALERT</div><div class="ttdoc">Action required ASAP.</div><div class="ttdef"><b>Definition</b> types.h:60</div></div>
<div class="ttc" id="agroup__publictypes_html_ga91b18adc2526599377583951c29e84b9"><div class="ttname"><a href="group__publictypes.html#ga91b18adc2526599377583951c29e84b9">SIRL_WARN</a></div><div class="ttdeci">#define SIRL_WARN</div><div class="ttdoc">Warnings that could likely be ignored.</div><div class="ttdef"><b>Definition</b> types.h:63</div></div>
<div class="ttc" id="agroup__publictypes_html_ga9e73defcee82050f038956ad7e911621"><div class="ttname"><a href="group__publictypes.html#ga9e73defcee82050f038956ad7e911621">SIRL_INFO</a></div><div class="ttdeci">#define SIRL_INFO</div><div class="ttdoc">Informational messages.</div><div class="ttdef"><b>Definition</b> types.h:65</div></div>
<div class="ttc" id="agroup__publictypes_html_gaa2927c260f1d8fac96513442e50105fc"><div class="ttname"><a href="group__publictypes.html#gaa2927c260f1d8fac96513442e50105fc">SIRL_DEBUG</a></div><div class="ttdeci">#define SIRL_DEBUG</div><div class="ttdoc">Debugging/diagnostic output.</div><div class="ttdef"><b>Definition</b> types.h:66</div></div>
<div class="ttc" id="agroup__publictypes_html_gab4214e294af5ac3c91f21c1d379e10c5"><div class="ttname"><a href="group__publictypes.html#gab4214e294af5ac3c91f21c1d379e10c5">sir_textcolor</a></div><div class="ttdeci">uint32_t sir_textcolor</div><div class="ttdoc">stdio text color type.</div><div class="ttdef"><b>Definition</b> types.h:141</div></div>
<div class="ttc" id="agroup__publictypes_html_gac559a9050c927bf0dc9f88dfc3905e06"><div class="ttname"><a href="group__publictypes.html#gac559a9050c927bf0dc9f88dfc3905e06">SIRL_CRIT</a></div><div class="ttdeci">#define SIRL_CRIT</div><div class="ttdoc">Critical errors.</div><div class="ttdef"><b>Definition</b> types.h:61</div></div>
<div class="ttc" id="agroup__publictypes_html_gad4aefd62d77b020460d32c9350bec7d5"><div class="ttname"><a href="group__publictypes.html#gad4aefd62d77b020460d32c9350bec7d5">SIRL_NOTICE</a></div><div class="ttdeci">#define SIRL_NOTICE</div><div class="ttdoc">Normal but significant.</div><div class="ttdef"><b>Definition</b> types.h:64</div></div>
<div class="ttc" id="agroup__publictypes_html_gadbc71df98df765cddfed4aa11c805470"><div class="ttname"><a href="group__publictypes.html#gadbc71df98df765cddfed4aa11c805470">sirpluginid</a></div><div class="ttdeci">uint32_t sirpluginid</div><div class="ttdoc">Plugin module identifier type.</div><div class="ttdef"><b>Definition</b> types.h:52</div></div>
<div class="ttc" id="agroup__publictypes_html_gafb659914aac0129182d86f7d3414e85d"><div class="ttname"><a href="group__publictypes.html#gafb659914aac0129182d86f7d3414e85d">sir_options</a></div><div class="ttdeci">uint32_t sir_options</div><div class="ttdoc">sir_option bitmask type.</div><div class="ttdef"><b>Definition</b> types.h:96</div></div>
<div class="ttc" id="agroup__publictypes_html_gga861df9be69c6bcd01d29b77bd28ff7d3a0f293a6020f98a7e41b8afea0e402046"><div class="ttname"><a href="group__publictypes.html#gga861df9be69c6bcd01d29b77bd28ff7d3a0f293a6020f98a7e41b8afea0e402046">SIR_E_PLATFORM</a></div><div class="ttdeci">@ SIR_E_PLATFORM</div><div class="ttdoc">Platform error code %d: %s.</div><div class="ttdef"><b>Definition</b> errors.h:67</div></div>
<div class="ttc" id="agroup__publictypes_html_structsir__errorinfo"><div class="ttname"><a href="group__publictypes.html#structsir__errorinfo">sir_errorinfo</a></div><div class="ttdoc">Information about an error that occurred.</div><div class="ttdef"><b>Definition</b> types.h:150</div></div>
<div class="ttc" id="agroup__publictypes_html_structsirinit"><div class="ttname"><a href="group__publictypes.html#structsirinit">sirinit</a></div><div class="ttdoc">libsir initialization and configuration data.</div><div class="ttdef"><b>Definition</b> types.h:244</div></div>
<div class="ttc" id="anamespacesir_html"><div class="ttname"><a href="namespacesir.html">sir</a></div><div class="ttdoc">libsir C++ wrapper implementation.</div><div class="ttdef"><b>Definition</b> sir.hh:79</div></div>
<div class="ttc" id="anamespacesir_html_a5f417c5e60499d22d51b5128a66dbe1a"><div class="ttname"><a href="namespacesir.html#a5f417c5e60499d22d51b5128a66dbe1a">sir::all_derived_from_t</a></div><div class="ttdeci">consteval auto all_derived_from_t()</div><div class="ttdoc">Ensures (at compile time) that all Ts are derived classes of TBase.</div><div class="ttdef"><b>Definition</b> sir.hh:778</div></div>
<div class="ttc" id="anamespacesir_html_a9a3c14fe6dc0ce95abd6a5d823f3dada"><div class="ttname"><a href="namespacesir.html#a9a3c14fe6dc0ce95abd6a5d823f3dada">sir::boost_logger</a></div><div class="ttdeci">logger&lt; true, default_policy, default_adapter, boost_format_adapter &gt; boost_logger</div><div class="ttdoc">A logger that implements the default adapter and the boost::format adapter.</div><div class="ttdef"><b>Definition</b> sir.hh:998</div></div>
<div class="ttc" id="anamespacesir_html_abcbcc21fee81bc437c75083b90688e6a"><div class="ttname"><a href="namespacesir.html#abcbcc21fee81bc437c75083b90688e6a">sir::fmt_logger</a></div><div class="ttdeci">logger&lt; true, default_policy, default_adapter, fmt_format_adapter &gt; fmt_logger</div><div class="ttdoc">A logger that implements the default adapter and the fmt::format adapter.</div><div class="ttdef"><b>Definition</b> sir.hh:1013</div></div>
<div class="ttc" id="anamespacesir_html_adf1c3a7184436b3e0e7145325e867f0a"><div class="ttname"><a href="namespacesir.html#adf1c3a7184436b3e0e7145325e867f0a">sir::iostream_logger</a></div><div class="ttdeci">logger&lt; true, default_policy, default_adapter, std_iostream_adapter &gt; iostream_logger</div><div class="ttdoc">A logger that implements the default adapter and the std::iostream adapter.</div><div class="ttdef"><b>Definition</b> sir.hh:1028</div></div>
<div class="ttc" id="anamespacesir_html_ae08772b1ec0bd141c79d99fc4ba2d6ce"><div class="ttname"><a href="namespacesir.html#ae08772b1ec0bd141c79d99fc4ba2d6ce">sir::std_format_logger</a></div><div class="ttdeci">logger&lt; true, default_policy, default_adapter, std_format_adapter &gt; std_format_logger</div><div class="ttdoc">A logger that implements the default adapter and the std::format adapter.</div><div class="ttdef"><b>Definition</b> sir.hh:983</div></div>
<div class="ttc" id="anamespacesir_html_aeeaffc9b61a4a185d0376489c7424119"><div class="ttname"><a href="namespacesir.html#aeeaffc9b61a4a185d0376489c7424119">sir::throw_on_policy</a></div><div class="ttdeci">static bool throw_on_policy(bool expr) noexcept(false)</div><div class="ttdoc">Handles a potential error; if an error is present and the policy in place requires throwing an except...</div><div class="ttdef"><b>Definition</b> sir.hh:289</div></div>
<div class="ttc" id="anamespacesir_html_af7e07997ea6e1fd2886a5ddc09eb91f7"><div class="ttname"><a href="namespacesir.html#af7e07997ea6e1fd2886a5ddc09eb91f7">sir::NthTypeOf</a></div><div class="ttdeci">typename std::tuple_element&lt; N, std::tuple&lt; Ts... &gt; &gt;::type NthTypeOf</div><div class="ttdoc">Utility template for obtaining the type of Nth item in a parameter pack.</div><div class="ttdef"><b>Definition</b> sir.hh:774</div></div>
<div class="ttc" id="anamespacesir_html_afea168ed2dc59a4b8ab004364a6f4112"><div class="ttname"><a href="namespacesir.html#afea168ed2dc59a4b8ab004364a6f4112">sir::default_logger</a></div><div class="ttdeci">logger&lt; true, default_policy, default_adapter &gt; default_logger</div><div class="ttdoc">A logger that implements the default adapter.</div><div class="ttdef"><b>Definition</b> sir.hh:975</div></div>
<div class="ttc" id="asir_8h_html"><div class="ttname"><a href="sir_8h.html">sir.h</a></div><div class="ttdoc">Public interface to libsir.</div></div>
<div class="ttc" id="astructsir_1_1error__info_html"><div class="ttname"><a href="structsir_1_1error__info.html">sir::error_info</a></div><div class="ttdoc">Contains all available information about an error.</div><div class="ttdef"><b>Definition</b> sir.hh:116</div></div>
<div class="ttc" id="astructsir_1_1error__info_html_a2f83aca9899de43aab001ef87309c746"><div class="ttname"><a href="structsir_1_1error__info.html#a2f83aca9899de43aab001ef87309c746">sir::error_info::os_message</a></div><div class="ttdeci">std::string os_message</div><div class="ttdoc">If an OS/libc error, the associated message.</div><div class="ttdef"><b>Definition</b> sir.hh:121</div></div>
<div class="ttc" id="astructsir_1_1error__info_html_a61fbf2aa83f633e14d555d776678293c"><div class="ttname"><a href="structsir_1_1error__info.html#a61fbf2aa83f633e14d555d776678293c">sir::error_info::func</a></div><div class="ttdeci">std::string func</div><div class="ttdoc">Name of the function in which the error occurred.</div><div class="ttdef"><b>Definition</b> sir.hh:117</div></div>
<div class="ttc" id="astructsir_1_1error__info_html_a95cccdc388e72ad80148f4dcbe909c9b"><div class="ttname"><a href="structsir_1_1error__info.html#a95cccdc388e72ad80148f4dcbe909c9b">sir::error_info::os_code</a></div><div class="ttdeci">int os_code</div><div class="ttdoc">If an OS/libc error, the associated code.</div><div class="ttdef"><b>Definition</b> sir.hh:120</div></div>
<div class="ttc" id="astructsir_1_1error__info_html_aba8bcd37037f5f60ed649eb294116e3f"><div class="ttname"><a href="structsir_1_1error__info.html#aba8bcd37037f5f60ed649eb294116e3f">sir::error_info::file</a></div><div class="ttdeci">std::string file</div><div class="ttdoc">Name of the file in which the error occurred.</div><div class="ttdef"><b>Definition</b> sir.hh:118</div></div>
<div class="ttc" id="astructsir_1_1error__info_html_af75e59110165c3b9956b033f6d8b2fa3"><div class="ttname"><a href="structsir_1_1error__info.html#af75e59110165c3b9956b033f6d8b2fa3">sir::error_info::line</a></div><div class="ttdeci">uint32_t line</div><div class="ttdoc">Line number at which the error occurred.</div><div class="ttdef"><b>Definition</b> sir.hh:119</div></div>
<div class="ttc" id="astructsir_1_1error_html"><div class="ttname"><a href="structsir_1_1error.html">sir::error</a></div><div class="ttdoc">Contains basic information about an error.</div><div class="ttdef"><b>Definition</b> sir.hh:91</div></div>
<div class="ttc" id="astructsir_1_1error_html_a4859a24ff453b0a05a7824a824e7117a"><div class="ttname"><a href="structsir_1_1error.html#a4859a24ff453b0a05a7824a824e7117a">sir::error::code</a></div><div class="ttdeci">uint16_t code</div><div class="ttdoc">Numeric error code (see sir_errorcode).</div><div class="ttdef"><b>Definition</b> sir.hh:92</div></div>
<div class="ttc" id="astructsir_1_1error_html_a9f669faed973601b349f315ca7b3c053"><div class="ttname"><a href="structsir_1_1error.html#a9f669faed973601b349f315ca7b3c053">sir::error::message</a></div><div class="ttdeci">std::string message</div><div class="ttdoc">Formatted error message.</div><div class="ttdef"><b>Definition</b> sir.hh:93</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.7-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="sir_8hh.html">sir.hh</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
  </ul>
</div>
</body>
</html>
